home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / interapplication comm / menuscripter / sources / msscript.h < prev    next >
Encoding:
Text File  |  2000-06-23  |  1.2 KB  |  39 lines

  1. // MSScript.h
  2. //
  3. // Original version by Jon Lansdell and Nigel Humphreys.
  4. // 4.0 and 3.1 updates by Greg Sutton.
  5. // Human Interface changes and GX Printing by Don Swatman
  6. // ©Apple Computer Inc 1996, all rights reserved.
  7.  
  8. #pragma once
  9.  
  10. #include <Types.h>
  11. #include <OSA.h>
  12.  
  13. #include "MSGlobals.h"
  14.  
  15. #define kDefaultDocumentScript    300
  16.  
  17.  
  18. OSErr        InitEditorScripting( void );
  19. OSErr        SetOSAActiveProcedure( void );
  20. OSErr        CloseEditorScripting( void );
  21. OSErr        CompileDocument( DPtr theDoc );
  22. OSErr        ExecuteDocument( DPtr theDoc );
  23. OSErr        ScriptForMenuExists( short theMenu, short theItem, Boolean *exists );
  24. OSErr        ExecuteScriptForMenu( short theMenu, short theItem );
  25. OSErr        EditMenuScript( short theMenu, short theItem );
  26.  
  27. short                GetScriptActiveItem( void );
  28. MenuScriptRecPtr    GetMenuScriptRecPtr( short theResID );
  29.  
  30. OSAError    LoadDocumentScript( DPtr theDoc, short theFileRef );
  31. OSAError    StoreDocumentScript( DPtr theDoc, short theFileRef );
  32.  
  33. OSAError    GetScriptProperty( OSAID contextID, const AEDesc* propertyName, AEDesc* result );
  34. OSAError    SetScriptProperty( OSAID contextID, const AEDesc* propertyName, const AEDesc* value );
  35.  
  36. OSErr        GetScriptDesc( OSAID theScriptID, DescType theWantType, AEDesc* theResult );
  37. OSErr        SetScriptDesc( const AEDesc* theData, OSAID* theResult );
  38.  
  39.